 
<script language="javascript" type="text/javascript" src="<?php echo $this->config->item('staticPath'); ?>/<?php echo $this->uri->segment(1);?>/js/js_class.js"></script>
 
<div class="container_topmenu">
	<div class="grid_12">
		<div class="grid_3">
			<h5>Class Level</h5>
		</div>
		<span class="topmenu">
			<?php ///if (in_array('users', $this->permission->permissions)): ?>

	<?php //endif; ?>

	<?php //if (in_array('users_groups', $this->permission->permissions)): ?>
	 	<a href="javascript:void('0');" class="button" id="btnAdd"><?php echo $btnAddClass;?></a>
			<?php // endif; ?>
			
	 </span>
	</div>
</div>

<div class="container_12">
 
	<div class="grid_12">
		<table class="default" width="100%">
			<tr>
				<td style='display:none'>gid</td>
				<td style='display:none'>sid</td>
				<td style='display:none'>schid</td>
				<th><?php echo order_link('ssm/classlevel','section_'.$label_language ,$this->lang->line('ssm_class_col_section'),3); ?></th>
				<th><?php echo order_link('ssm/classlevel','label_'.$label_language ,$this->lang->line('ssm_class_col_classname'),3); ?></th>
				<th class="tiny"><?php echo $createdate;?></th>
				<th class="tiny"><?php echo $edit;?></th>
				<th class="tiny"><?php echo $del;?></th>
			</tr>
			<?php foreach ($classlevel as $level){ ?>
			<tr>
				<td style='display:none'><?php echo $level['grade_id'];?></td>
				<td style='display:none'><?php echo $level['section_id'];?></td>
				<td style='display:none'><?php echo $level['school_id'];?></td>
				<td><?php echo $level['section_'.$label_language];?></td>
				<td><?php echo $level['label_'.$label_language];?></td>
				<td style='width: 20%; text-align: center;'><?php echo dateFmt($level['updated_date'], ($this->site->config['dateOrder'] == 'MD') ? 'M jS Y' : 'jS M Y');?>
				</td>
				<td style='width: 5%; text-align: center;'><img class="btnEdit"
					src="<?php echo $this->config->item('staticPath'); ?>/images/btn_edit.png"
					alt="Edit" title="Edit" />
				</td>
				<td style='width: 5%; text-align: center;'><img class="btnDelete"
					src="<?php echo $this->config->item('staticPath'); ?>/images/btn_delete.png"
					alt="Delete" title="Delete" />
				</td>
			</tr>
			<?php } ?>
		</table>
	</div>


	<div class="clear"></div>
	<div style='height: 30px'>
		<p style="text-align: right;">
			<a href="#" class="button grey" id="totop">Back to top</a>
		</p>
	</div>
	
	<div id="dialog-confirm" title="Confirm delete?" style="padding-top:20px;">
		<p style="font-size:13px"><span class="ui-icon ui-icon-alert" 
			style="float:left; margin:0 7px 20px 0;">
			</span>Are you sure this class?</p>
	</div>
	<div id="dialog-form">
		<p class="validateTips">* fields are required.</p>
		<form>
			<table cellpadding="3" cellspacing="5" border="0" width="100%" class="fieldset">
				 <tr>
					<td ><label for="nameClass">Section *</label></td>
					<td >
						<select id="section_id" style="width:22em;font-size:12px;margin-bottom:3px;"  class="ui-widget ui-widget-content ui-corner-left" />
					</td>
				</tr>			
				 <tr>
					<td ><label for="nameClass">Class Name (english) *</label></td>
					<td ><input type="text" name="label_english" id="label_english"
						class="ui-widget-content ui-corner-all" style="width:95%;font-size:12px;margin-bottom:3px;height:25px;padding-left:10px;" />
					</td>
				</tr>
				<tr>
					<td width="40%"><label for="nameClass">Class Name (thai)</label></td>
					<td width="60%"><input type="text" name="label_thai" id="label_thai"
						class="ui-widget-content ui-corner-all" style="width:95%;font-size:12px;margin-bottom:3px;height:25px;padding-left:10px;" />
					</td>
				</tr>

				<tr>
					<td><label for="nameClass">Class Name (chinese)</label></td>
					<td><input type="text" name="label_chinese" id="label_chinese"
						class="ui-widget-content ui-corner-all" style="width:95%;font-size:12px;margin-bottom:3px;height:25px;padding-left:10px;" />
					</td>
				</tr>
			 	<tr>
					<td><label for="nameClass">Class Name (laos)</label></td>
					<td><input type="text" name="label_laos" id="label_laos"
						class="ui-widget-content ui-corner-all" style="width:95%;font-size:12px;margin-bottom:3px;height:25px;padding-left:10px;" />
					</td>
				</tr>	
				<tr>
					<td><label for="nameClass">Class Name (myanmar)</label></td>
					<td><input type="text" name="label_myanmar" id="label_myanmar"
						class="ui-widget-content ui-corner-all" style="width:95%;font-size:12px;margin-bottom:3px;height:25px;padding-left:10px;" />
					</td>
				</tr>	
				 <tr>
					<td><label for="nameClass">Class Name (khmer)</label></td>
					<td><input type="text" name="label_khmer" id="label_khmer"
						class="ui-widget-content ui-corner-all" style="width:95%;font-size:12px;margin-bottom:3px;height:25px;padding-left:10px;" />
					</td>
				</tr>	
					 <tr>
					<td><label for="nameClass">Class Name (vietnamese)</label></td>
					<td><input type="text" name="label_vietnamese" id="label_vietnamese"
						class="ui-widget-content ui-corner-all" style="width:95%;font-size:12px;margin-bottom:3px;height:25px;padding-left:10px;" />
					</td>
				</tr>	
				  <tr>
					<td><label for="nameClass">Class Name (malaymalay)</label></td>
					<td><input type="text" name="label_malaymalay" id="label_malaymalay"
						class="ui-widget-content ui-corner-all" style="width:95%;font-size:12px;margin-bottom:3px;height:25px;padding-left:10px;" />
					</td>
				</tr>	
				  <tr>
					<td><label for="nameClass">Class Name (malayindo)</label></td>
					<td><input type="text" name="label_malayindo" id="label_malayindo"
						class="ui-widget-content ui-corner-all" style="width:95%;font-size:12px;margin-bottom:3px;height:25px;padding-left:10px;" />
					</td>
				</tr>
				  <tr>
					<td><label for="nameClass">Class Name (malaybrunei)</label></td>
					<td><input type="text" name="label_malaybrunei" id="label_malaybrunei"
						class="ui-widget-content ui-corner-all" style="width:95%;font-size:12px;margin-bottom:3px;height:25px;padding-left:10px;" />
					</td>
				</tr>
				  <tr>
					<td><label for="nameClass">Class Name (filipino)</label></td>
					<td><input type="text" name="label_filipino" id="label_filipino"
						class="ui-widget-content ui-corner-all" style="width:95%;font-size:12px;margin-bottom:3px;height:25px;padding-left:10px;" />
					</td>
				</tr>
				  <tr>
					<td><label for="nameClass">Class Name (arabic)</label></td>
					<td><input type="text" name="label_arabic" id="label_arabic"
						class="ui-widget-content ui-corner-all" style="width:95%;font-size:12px;margin-bottom:3px;height:25px;padding-left:10px;" />
					</td>
				</tr>				
 			</table>
		</form>
	</div>